package com.company.service;

import java.util.List;

import com.company.dao.NewsDao;
import com.company.dao.PageNewsDao;
import com.company.dao.PageProDao;
import com.company.entity.Chanpinfuwu;
import com.company.entity.News;

public class PageNewsService {
	PageNewsDao pageNewsDao;

	public PageNewsDao getPageNewsDao() {
		return pageNewsDao;
	}

	public void setPageNewsDao(PageNewsDao pageNewsDao) {
		this.pageNewsDao = pageNewsDao;
	}

	public List<News> query(int pageNum) {
		return pageNewsDao.query(pageNum);
	}
	public List<News> querylast() {
		return pageNewsDao.querylast();
	}


	public int queryPageNum() {
		return pageNewsDao.queryPageNum();
	}
}
